package com.bicon.botu.account.processor.rpc.handler;

import com.bicon.botu.account.processor.service.ThirdPartService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by L on 2017/2/13.
 */
public interface ThirdPartRpc extends ThirdPartService {

    @Override
    @RequestMapping(value = "/V1.0.0/sendMessage",method = RequestMethod.POST)
    String sendMessage(@RequestParam("messageSignature") String messageSignature, @RequestParam("content") String content, @RequestParam("messageTemp") String messageTemp, @RequestParam("phone") String phone);



    @Override
    @RequestMapping(value = "/V1.0.0/sendMail",method = RequestMethod.POST)
    String sendMail(@RequestParam("subject") String subject, @RequestParam("content") String content, @RequestParam("email") String email, @RequestParam("sendMail") String sendMail,
                    @RequestParam("userNick") String userNick, @RequestParam("passWord") String passWord, @RequestParam("imageFile") String imageFile, @RequestParam("file") String file,
                    @RequestParam("mailSmtphost") String mailSmtphost, @RequestParam("mailSmtpport") String mailSmtpport);

    @Override
    @RequestMapping(value = "/V1.0.0/sendYunSms",method = RequestMethod.POST)
    String sendYunSms(@RequestParam(value = "phone") String phone,
                           @RequestParam(value = "content") String content,
                           @RequestParam(value = "type",required = false) String type);

}
